package com.example.demo.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.example.demo.domain.Person;

public class ExcelPersonDataListener extends AnalysisEventListener<Person> {
    private Integer count = 0;
    @Override
    public void invoke(Person person, AnalysisContext analysisContext) {
        System.out.println("执行力：" + ++count);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("解析完了");
    }
}
